package com.dingpeikeji.quickdeer.modules.rentproduct.entity;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.dingpeikeji.quickdeer.core.common.persistence.DataEntity;
import com.dingpeikeji.quickdeer.core.modules.sys.entity.Office;

/**
 * 协议价维护Entity
 * @author wuhao
 * @version 2016-08-08
 */
public class TCompAgreerate extends DataEntity<TCompAgreerate> {
	
	private static final long serialVersionUID = 1L;
	private Integer agreerateid;		// 主键
	private Office office;		// 客运公司
	private String parnertype;		// 合作伙伴类型
	private Double discount;		// 折扣比例(%)
	
	public TCompAgreerate() {
		super();
	}

	public TCompAgreerate(String id){
		super(id);
	}

	public Integer getAgreerateid() {
		return agreerateid;
	}

	public void setAgreerateid(Integer agreerateid) {
		this.agreerateid = agreerateid;
	}
	
	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}
	
	@Length(min=1, max=100, message="合作伙伴类型长度必须介于 1 和 2 之间")
	public String getParnertype() {
		return parnertype;
	}

	public void setParnertype(String parnertype) {
		this.parnertype = parnertype;
	}
	
	public Double getDiscount() {
		return discount;
	}

	public void setDiscount(Double discount) {
		this.discount = discount;
	}
	
}